package com.qf.clients;

import com.qf.pojo.repVo.BaseResp;
import org.springframework.stereotype.Component;

@Component
public class CourseClientFallBack implements CourseClient{
    @Override
    public BaseResp findCourseDetailById(Integer id) {
        System.out.println("course服务不可用，直接进入到降级方法中，走预定好的退路方法！");
        return new BaseResp(0,"当前服务不可用！",null,null);
    }
}
